package com.woniu.command.handler;

import com.woniu.adapter.WorkingProcedureAdapter;
import com.woniu.outlet.po.WorkingProcedurePo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class WorkingProcedureCommandHandler {

    @Autowired
    private WorkingProcedureAdapter workingProcedureAdapter;



    public Integer addWorkingProcedure(WorkingProcedurePo workingProcedurePo){
        workingProcedureAdapter.addWorkingProcedure(workingProcedurePo);
        return 1;
    }

    public Integer updateWorkingProcedure(WorkingProcedurePo workingProcedurePo){
        workingProcedureAdapter.updateWorkingProcedure(workingProcedurePo);
        return 1;
    }

    public Integer deleteWorkingProcedureById(Long id){
        workingProcedureAdapter.deleteWorkingProcedureById(id);
        return 1;
    }



}
